<html>
<head>
     <title>Help: figures2htm</title>
</head>
<body>
     <center><table><tbody>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #ddd;">
                  <h4>figures2htm</h4>Writes all open figures to .png files and integrates them in a html file
                  <br><small>Last modified: 25-Sep-2009 16:28:37</small>

          </tr>
          <tr>
             <td style="border: 0px solid rgb(170, 170, 170); padding: 5px; background-color: #ddd;">
                  <a href="http://guillaumemaze.googlecode.com/svn/trunk/matlab/codes/graphicxFigures/figures2htm.m">Download here</a>
             </td>
          </tr>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #fff; font-size:12px;">
                  <br>% figures2htm Writes all open figures to .png files and integrates them in a html file<br>% or<br>% figures2htm(reportdir,basename)<br>%<br>% 1) Writes all open figures to .png files and integrates them in a html file<br>% which opens the figure to full screen if clicked. If the figure has a<br>% name rather than a number, this will be part of the filename<br>% 2) and creates an index.htm for easy acces of several results<br>% Especially handy when a function has to be run often and produces quite<br>% some images.<br>% 3) writes relative links, so the entire dir can be copied and links still<br>% work<br>% 4) Works NOT in Firefox, sorry for that. The generated .htm code is quite<br>% crude, IE does render this.<br>%<br>% An index.htm is built for easy access of several reports, made for<br>% rerunning this code from different functions and datasources. The same<br>% reportdir should be used.<br>% and<br>% write variables to this htm-file with relevant images in same dir.<br>% <br>% USAGE : <br>%  'reportdir'  = Directory where to write, should end with a backslash<br>%  'basename'   = name of dataset which is being plotted<br>% 'functionname'= name of function that calls figure_report, if none given<br>%                 'unknown_' will be used.<br>% the 2 last mentioned names will be incorporated in the filenames and/or <br>% sub-dir names, which is handy for browsing results<br>% base<br>% <br>% EXAMPLE :<br>% figure<br>% set(gcf,'NumberTitle','off','Name','Sinewave');<br>% plot(sin(0:0.1:6.3));<br>% <br>% figure<br>% plot(rand(40,1));<br>% <br>% figure<br>% set(gcf,'Name','Peaks'); <br>% surf(peaks);<br>% <br>% figures2htm('C:\figdemo\','demo','function') <br>% figures2htm('C:\figdemo\','demo')<br>%<br>%<br>% N.J.de Grooth<br>%  2006
             </td>
          </tr>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #ddd; font-size:12px;">
                  Last update: 2011 March 04, 17:46<br>
                  Created by Guillaume Maze<br>
                  More informations at: <a href="http://codes.guillaumemaze.org/matlab">codes.guillaumemaze.org/matlab</a><br>
             </td>
          </tr>
     </tbody></table></center>
</body>
</html>
